////
//// Source code recreated from a .class file by IntelliJ IDEA
//// (powered by Fernflower decompiler)
////
//package video;
//
//import java.io.IOException;
//import javax.microedition.lcdui.Alert;
//import javax.microedition.lcdui.AlertType;
//import javax.microedition.lcdui.Canvas;
//import javax.microedition.lcdui.Command;
//import javax.microedition.lcdui.CommandListener;
//import javax.microedition.lcdui.Displayable;
//import javax.microedition.lcdui.Graphics;
//import javax.microedition.lcdui.Image;
//import javax.microedition.rms.RecordStore;
//import javax.microedition.rms.RecordStoreException;
//
//public class AboutCanvas extends Canvas implements CommandListener {
//    private final JmvrMIDlet midlet;
//    private Command nextCommand = null;
//    private Command languageCommand = null;
//    private Command verCommand = null;
//    private Command exitCommand = null;
//    public int nLanguage = 0;
//    public String strLanguage = "0";
//    public String strSet = "Setting";
//    private Image image;
//    private ListForm listForm;
//    private SetLanguageForm setLanguageForm;
//
//    public AboutCanvas(JmvrMIDlet var1) {
//        this.midlet = var1;
//        this.loadRecord();
//        if(this.nLanguage == 0) {
//            this.nextCommand = new Command("下一步", 1, 1);
//            this.languageCommand = new Command("语言/Language", 1, 1);
//            this.verCommand = new Command("关于", 1, 1);
//            this.exitCommand = new Command("退出", 1, 1);
//            this.strSet = "设置";
//        } else {
//            this.nextCommand = new Command("Next", 1, 1);
//            this.languageCommand = new Command("Language/语言", 1, 1);
//            this.verCommand = new Command("About", 1, 1);
//            this.exitCommand = new Command("Exit", 1, 1);
//            this.strSet = "Setting";
//        }
//
//        this.addCommand(this.nextCommand);
//        this.addCommand(this.languageCommand);
//        this.addCommand(this.verCommand);
//        this.addCommand(this.exitCommand);
//        this.setCommandListener(this);
//
//        try {
//            this.image = Image.createImage("/LOGO.png");
//        } catch (IOException var3) {
//            ;
//        }
//
//    }
//
//    public void commandAction(Command var1, Displayable var2) {
//        if(var1 == this.nextCommand) {
//            this.listForm = null;
//            this.listForm = new ListForm(this, this.midlet.display);
//            this.midlet.display.setCurrent(this.listForm);
//        } else if(var1 == this.languageCommand) {
//            this.setLanguageForm = new SetLanguageForm(this, this.midlet.display);
//            this.midlet.display.setCurrent(this.setLanguageForm);
//        } else if(var1 == this.verCommand) {
//            this.midlet.display.setCurrent(new Alert(" ", "Version 2.7", (Image)null, AlertType.INFO));
//        } else if(var1 == this.exitCommand) {
//            this.exitMIDlet();
//        }
//
//    }
//
//    public void paint(Graphics var1) {
//        var1.setColor(16777215);
//        var1.fillRect(0, 0, this.getWidth(), this.getHeight());
//        var1.drawImage(this.image, (this.getWidth() - this.image.getWidth()) / 2, (this.getHeight() - this.image.getHeight()) / 2, 20);
//    }
//
//    private void exitMIDlet() {
//        this.midlet.destroyApp(false);
//        this.midlet.notifyDestroyed();
//    }
//
//    public void loadRecord() {
//        try {
//            this.strLanguage = "0";
//            RecordStore var1 = RecordStore.openRecordStore("LanguageRS", true);
//            if(var1.getNumRecords() == 1) {
//                this.strLanguage = new String(var1.getRecord(1));
//            }
//
//            var1.closeRecordStore();
//            this.nLanguage = Integer.parseInt(this.strLanguage.substring(0));
//        } catch (RecordStoreException var2) {
//            ;
//        }
//
//    }
//
//    public void saveRecord() {
//        try {
//            this.strLanguage = String.valueOf(this.nLanguage);
//            RecordStore var1 = RecordStore.openRecordStore("LanguageRS", true);
//            if(var1.getNumRecords() == 1) {
//                var1.setRecord(1, this.strLanguage.getBytes(), 0, this.strLanguage.length());
//            } else {
//                if(var1.getNumRecords() > 0) {
//                    var1.closeRecordStore();
//                    RecordStore.deleteRecordStore("LanguageRS");
//                    var1 = RecordStore.openRecordStore("LanguageRS", true);
//                }
//
//                var1.addRecord(this.strLanguage.getBytes(), 0, this.strLanguage.length());
//            }
//
//            var1.closeRecordStore();
//        } catch (RecordStoreException var2) {
//            ;
//        }
//
//    }
//
//    public void refreshlanguage() {
//        this.saveRecord();
//        this.removeCommand(this.nextCommand);
//        this.removeCommand(this.languageCommand);
//        this.removeCommand(this.verCommand);
//        this.removeCommand(this.exitCommand);
//        if(this.nLanguage == 0) {
//            this.nextCommand = new Command("下一步", 1, 1);
//            this.languageCommand = new Command("语言/Language", 1, 1);
//            this.verCommand = new Command("关于", 1, 1);
//            this.exitCommand = new Command("退出", 1, 1);
//            this.strSet = "设置";
//        } else {
//            this.nextCommand = new Command("Next", 1, 1);
//            this.languageCommand = new Command("Language/语言", 1, 1);
//            this.verCommand = new Command("About", 1, 1);
//            this.exitCommand = new Command("Exit", 1, 1);
//            this.strSet = "Setting";
//        }
//
//        this.addCommand(this.nextCommand);
//        this.addCommand(this.languageCommand);
//        this.addCommand(this.verCommand);
//        this.addCommand(this.exitCommand);
//        this.setCommandListener(this);
//
//        try {
//            this.image = Image.createImage("/LOGO.png");
//        } catch (IOException var2) {
//            ;
//        }
//
//    }
//
//    public void exit() {
//        this.exitMIDlet();
//    }
//}
